const koa = require('koa')

// const cors = require('koa-cors')

import { router, getApp } from './router/index'


const app = new koa()
getApp(__dirname, app)


// app.use(cors())

app
    .use(router.routes())
    .use(router.allowedMethods())

app.listen(3000, () => {
    console.log('3000 is running');
})